package com.secf.service.port.hpy.hys.test.day5;

import java.util.Arrays;

/**
 * @Author ms
 * @Date 2024-08-08
 */
public class ArrayPracticeTest {
    public static void main(String[] args) {
        int[] scores = {85, 92, 78, 96, 88};
        double average = StudentScoresManager.calculateAverage(scores);
        System.out.println("Average Score: " + average);

        int[] inventory = {50, 20, 15, 30, 10};
        InventoryManager.addStock(inventory, 1, 10);
        System.out.println("Updated Inventory: " + Arrays.toString(inventory));

        int[] data = DataAnalysis.generateData(1000);
        int max = DataAnalysis.findMax(data);
        System.out.println("Max value in data: " + max);

        int[][] coordinates = {
                {10, 20},
                {30, 40},
                {50, 60}
        };
        GameCoordinateManager.updateCoordinate(coordinates, 0, 15, 25);
        System.out.println("Updated Coordinates: " + Arrays.deepToString(coordinates));
    }
}
